use client::Uid;
use jarg::{jarg, json};

use crate::db::stripe::topup;

pub async fn post(Uid(uid): Uid, jarg!(n, card): json!(u64, u64)) -> re::msg!() {
  topup(uid, n, card).await?;
  Ok(())
}
